package com.example.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("message")
public class Message {
   @TableId(type = IdType.AUTO)
   private Long id;
   @TableField("date_time")
   private String dateTime;
   @TableField("system_")
   private String system;
   private String name;
   private String ip;
   private String content;
   private String auto;
   private String email;

   public Message(String auto, String email, String system, String content) {
      this.auto=auto;
      this.system=system;
      this.content=content;
      this.email=email;
   }
}
